﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace AINav.WebUI.Entities
{
    public class Course
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [DisplayName("编号")]
        public int CourseID { get; set; }
        [DisplayName("标题")]
        public string? Title { get; set; }
        [DisplayName("学分")]
        public int Credits { get; set; }

        public ICollection<Enrollment>? Enrollments { get; set; }
    }
}
